Fix for ruby encoding.