fixed issue with null terminated reads being slow and complaining