Response to migration is sign of character, pope says in Thailand