Known as Siam until 1939 , Thailand is the only Southeast Asian country never to have been taken over by a European power .