Added endian switching
Fixed null bytes in ReadUntill