Workaround: String.new(history).force_encoding("ASCII")

Ugly solution for "this operation cannot be performed with encoding
`UTF-8' because Apple's ICU does not support it"