Attempt to fix parsing of the file

https://bugzilla.wikimedia.org/show_bug.cgi?id=68023
Merge pull request #194 from nemobis/patch-2

Fix parsing of the file