escape base_path