Handle iso format where Z is prefixed with spaces

In response to #1290
Merge pull request #1294 from ichernev/bugfix/iso-format-z

Handle iso format where Z is prefixed with spaces