datetime unicode fix