local encoding variables to keep certain rails version from crashing