fix g++ 4.7 compiler warning about string conversion