Is more pedantic with encoding for various rubies.
Adds more encoding pedantry and fixes Activity#to_atom