fix TA contract category copying
decode utf-8 with BOM