Added file name to exceptions thrown by encodeFile()/decodeFile()