uri encode file path for slug