Public: Encode a string for inclusion in a URI
str - the string to encode
returns an encoded version of the str
Internal: Prior to invoking Kernel#require, issues a warning urging a manual require if running in a threaded environment.
name - the String name of the library to require.
returns false if the library is detected on the load path or the return value of delegating to Kernel#require
[Validate]