Add writeRaw(), allows client to encode data itself (useful for proxies)