Throw exception for non-hex chars

Resolves #3
Merge pull request #4 from saibotsivad/master

Throw exception for non-hex chars