Add magic encoding comment to ruby source files
Fix specs to work under rbx-18mode

* Remove stub Encoding class from spec support, and test to see if
  the constant is defined before using it in the encodable spec.