Fixed a bug that showed up with the AtomSID menu where a semigraphic char following an inverted char caused the inver to be lost

Change-Id: If18454cd62c2cfe852b89d19151a4b2a89789942