Substitute prototype for smaller minified size, use a buffer when converting to binary, see #32