Escape apostrophe character in paths