add ruby encoding 'magic comment' to file that contains multibyte character