Fix converting the charset of an empty string. Thanks to MrData on the forums for reporting this issue.