allow correct nested character references