Learn what “UTF-8 byte sequences” are, why they can be invalid and how to solve this problem in Ruby. — If you’ve landed here it means you’ve been hit by this message in your program. In this post I’ll quickly introduce you to what “UTF-8 byte sequences” are, why they can be invalid and how to solve this problem in Ruby. Short introduction to UTF-8 and other encodings UTF-8 is, as explained in Wikipedia, is a set…