Fix up the conversion to the get the ^ and ] around the right way