file.preserveBOM and test

fixes https://github.com/gruntjs/grunt/issues/806