Add support for strings containing null bytes