Fixed null terminated strings not being compiled with a null terminator
Fixed null terminated strings being written to XML as bytes instead of characters