Fix the filesystem implementation in order to get blargSnes to run

Actually, I think the whole function implementation would indeed be a lot more readable if it was using string objects instead.