Added file.preserveBOM property. Closes gh-806, gh-937.