Fixed multi-byte support for HTML output