Fix incorrect parsing of format capabilities. #323
Merge pull request #324 from bog/master

Fix incorrect parsing of format capabilities. Closes #323