Escape path property when using quick look

This makes quick look work correctly for paths with spaces or other
special characters in them.