sub -> gsub on log URI