Fix for decoding problem in datetime plugin

Should address issue #106