fix “string iterator not dereferencable” error in VC2010 debug mode (_ITERATOR_DEBUG_LEVEL == 2)