add giraudux_netstring_len function and use 'one return style'