Fix to file input that was causing extra newlines to be added to end of files, which caused extra artifacts at the end of files after decryption