fixed LKUEncode