add utf-8 magic for ruby <= 1.9