PROTON-755: Changed how the Data rspec test sets a single random character.

The new method is portable across versions of Ruby.