Changing to to_jstring()

We seems to have a few string conversion problems - see also #529.

@bmunkholm @kspangsege 
jfile_name naming here is inconsistent with other methods.