Made the script UTF-8 friendly; support for case-insensitive arguments (e.g. USD and usd OKi)