bug 1131: Properly escape greater than signs