function pToString (obj) {
  return Object.prototype.toString.call(obj);
}
Writes a string as UTF8 bytes.
@param {string} string Source string
@param {Uint8Array} buffer Destination buffer
@param {number} offset Destination offset
@returns {number} Bytes written