add encoding for ruby1.9.3