force const char* by using .c_str() from string

fix #44