I have an Rails application surviving from migrations since Rails version 1 and I would like to ignore all invalid byte sequences on it, to keep the backwards c
In ruby 2.0 you could use the String#b method, that is a short alias to String#force_encoding("BINARY")