building c string instead of ruby string