Fixed edge case where Time#zone is nil and Encoding.default_internal is set.