Fix struct.js to interpret strings as raw bytes for utf8 support

Thanks songfei!