upgrade rails
fix encodings for real. Do not modify values passed by reference, dummy