You need to update / install a version of the rdoc gem that supports the conversion. Then these errors won’t appear during generation of the documentation when you install rails or when you regenerate the documentation.
gem install rdoc
Then to regenerate the documentation
gem rdoc --all --overwrite