Fix #583. Allow upper and lowercase `to` values for `convert()`. Also re...

Allow upper and lowercase `to` values for `convert()`. Also return original value if an invalid `to` value is provided.

Fixes https://github.com/yui/yui3/issues/583

Ping @ericf