code: function str_to_bytes(str) {
          var retval = [ ]
          for (var i = 0; i < str.length; i++)
              if (str.charCodeAt(i) <= 0x7F) {
                  retval.push(str.charCodeAt(i))
              } else {
                  var tmp = encodeURIComponent(str.charAt(i)).substr(1).split('%')
                  for (var j = 0; j < tmp.length; j++) {
                      retval.push(parseInt(tmp[j], 0x10))
                  }
              }
          return retval
      }
docs: /*
  Conver string to array of bytes in UTF-8 encoding
  See:
  http://www.dangrossman.info/2007/05/25/handling-utf-8-in-javascript-php-and-non-utf8-databases/
  http://stackoverflow.com/questions/1240408/reading-bytes-from-a-javascript-string
  How about a String.getBytes(<ENCODING>) for Javascript!? Isn't it time to add it?