replace deprecated use of initWithCString by initWithUTF8String