fix url encoding brackets