Throw exception for non-hex chars

Resolves #3