Update loader and yui to optionally use pathogen encoding

Replaces https://github.com/yui/yui3/pull/1858

Need to test cross browser.
space after `if`, same below!