Add magic pragma for utf8 compatibility in older rubies