implement grdx_netstring_to_string_ab and grdx_string_to_netstring_ab functions