Add encoding rule in ruby skeleton.