fixed html char conversion