Workaround for lack of declaration of encoding in gems