Prevent failure on strange chunk types

The chunk type is not considered to be a valid string.
Merge pull request #22 from nwin/master

Prevent failure on strange chunk types