set encoding so we can use Japanese characters in test, for ruby 1.9.x.
use key/value to set translated attribute rather than dot notation.