Test encoding of tzinfo.