FIX: iso date encoding year overflow

Fixes #4869