Don't die on empty files.

the mime encoding of empty files is detected as 'binary' and subsequent
binary->utf-8 encoding fails.