Improved StringContactSpanner markup handling.