force encoding before encoding
declare ruby version