updating config rb to support correct encoding