Support for raw payloads and character encoding