simplify hex parsing (#628)

8 jobs for master in 13 minutes (queued for 1 second)