Update htmlfile.py

callback = request.GET.get('c', None) return a unicode parameter. The substitution at in (at least in Python 2.7.6) returns a unicode object. Unicode breaks pywsgi._write_with_headers method which expects a bytearray.

Encoding to UTF-8 keeps the result as a string.