Byteswaps the contents of a file.