Added enforcing locale configuration option to Application class.