Use magic comment to set encoding for entire file instead of .force_encoding.