ctdb: Create helper function for optional hex input