Type cast encode_hex as string

When passing in an int, ctype_xdigit returns false, but if cast to string, it passes, as expected
Merge pull request #5 from w33ble/patch-1

Type cast encode_hex $str as string