Rubocopification (unless ... else => if ... else, encoding, Multilines in {} block)