Fixed moveTo().

OpenOrCreate will overwrite bytes, however if the old file is longer
than the new file, the old ending will be left behind.
Merge pull request #1 from Pikachews/master

Fixed moveTo().