Fix square bracket escapes