Fix dereference of string iterator on MSVC