fixed file content handling (wasn't padding the data correctly)