code: function rstrtohex(s) {
      var result = "";
      for (var i = 0; i < s.length; i++) {
          result += ("0" + s.charCodeAt(i).toString(16)).slice(-2);
      }
      return result;
  }
docs: convert a raw string including non printable characters to hexadecimal encoded string.<br/>
  @param {String} s raw string
  @return {String} hexadecimal encoded string
  @since 1.1.2
  @example
  rstrtohex("a\x00a") &rarr; "610061"