ehanced accented characted handling in cleanHTML function