Remove Ruby 1.8 specific code
Removed superfluous exteranal encoding specifier

"b" implies ASCII-8BIT external encoding.
Removed encoding method guards
Use encoding constants instead of encoding names