escape directory paths