Taiwan president makes pledge to the pope