Move cleanPath to utils, test encoding quotes