In this case, it will also throw if the input doesn't conform to the hex encoding.