I haven\'t included my code, as the issue only arises if I try to use a certain html file with it. The use of that file gives me the error:
UnicodeEncode