Revert back to UTF8 when ss encoding fails. fix #2220