Do not try to decode() if there is no encoding found.
Use the right constant for LC_TIME to check if nothing changed.