Fix %{escape:} and %{unecape:} to work correctly with UTF8 safe characters