Remove unnecessary C string conversions