adjust bitmask & get_html_translation_table output

- the function of get_html_translation_table actually filters spaces to the entity of & # 39; (without the 0) so this has to be added to the replacement array
- the default document charset encoding varies dependant on PHP version and should be specified 

Signed-off-by: -Underdog- github.underdog@gmail.com