fixing HTML Entities encoding