MDL-40480 tablelib: specify charset in XHMTL downloads.

Thanks to Jürgen Zimmer for the suggestion.