properly encode time_zone var