$KCODE should be assigned if $KCODE is nil or "NONE"