Writing timestamp in UTC timezone

Fixes a problem with the PreparedInputTest reported in #7. Thanks to
@Bradeskojest for spotting the cause of the issue.