HTML encode Chinese characters, remove BOM