Escape Java path correctly