The Twitter founder will donate the money to charity after it was bought by a Malaysia-based businessman.