Taiwan shares end at almost 20,500 points following U.S. ral