fix issue with parsing dates in foreign language strings