Fixed file reading stopping on null characters