fixed bug in FileUtil::slurp (will have to verify that the fix doesn't break any other code that worked around the previous bug)