html_encode binary aware