Use Python 2- and 3-compatible string classes
Catch overflow errors while parsing dates