fix bug 647796 - better accept-language logic