add brackets to the list of characters graphite chokes on

(cherry-pick of 109cc80a to avoid a merge conflict later on)