Add writeBytes and readBytes functions, and modify accordingly to the read/write String functions.