Started to upgrade to rails 4
Added magic encoding token for ruby 1.9