gdhcp: Refactor alloc_dhcp_option to accept string or raw data.