Add dhcpcd_encode which encodes raw data back into a safe string.