add encoding to fix specs in ruby 1.9 env