Surface.load_from_string can better cope with string encodings.
Surface.load_from_string can better cope with string encodings.

Encodings other than BINARY (ASCII-8BIT) misinterpret some binary byte
sequences, causing a disagreement about the string length, and thus
causing out-of-bounds memory access errors.

Dami-coding/rubygame