fixed problem with to_string on windows