fixed ill-formed utf-8 in tail handling.
fixed ill-formed utf-8-mobile handling.