Fix encoding in tests
Use RbConfig; Config is deprecated