fix for DatetimeField.encode() and fixed-width null values