Use hard-coded conversion to workaround unit py3k bug