fix locale can not be set correctly by accepted-lanagues header.