Escape single quotes in filename

There are probably other special characters that will need to be
replaced.