Fixed handling of null-termination in the string and unicode string readers.