rails version up to 3.2.11
add encoding