browser: don't let "%%" throw off the color insertion index