fix bug in hex parsing

The %Lu scanf pattern does account for the leading "0x". Introduced in 92179c14.

Closes #263.

Related to #261.