normalize the code param of set_default_locale

when tornado.locale.set_default_locale('en-us') or 'en-US',  there is no checking for the locale code, so the translation would failed.