escape single quotes in file paths