fix string constructor bug under g++4.8