Forward patch of fix for bug #403
Updated html_encode() to correctly encode characters outside the ASCII character set