WL-2194 Only escape double quotes with the basic filename

The UTF-8 filename is not surrounded by double quotes so there is
no need to escape them here.