Improved C <-> Fortran string interfaces