Fix UnicodeDecodeError with date header when using locale pt_BR

Fix issue #190