[utils] Jython support - handle filenames correctly