Fixed string conversions for C++98 compilers