fix locale warning with ruby >=2.0