Fix minor bugs in reading files in fakemessages