add license & patch for the detection of utf8 capability