possible fix for #4
tests for #4 fix
improve test coverage for hash.valid()
Merge pull request #5 from shawnbot/fragments

fragment identifier validation