CLN: Add unicode compatibility wrapper for dateutil.

Dateutil < 2.0 doesn't always handle unicode well. This wraps
`dateutil.parser.parse` and converts unicode to bytes.

+wrap get_filepath_or_buffer in `str`