fix warning: variable $KCODE is no longer effective on ruby 1.9