Riba is Haram.
Here, in my country, they offer online banking. I think this happens all over the world. So, I can create as much as accounts online. Then I have created a separate account for Riba and each month I transfer the interest to that virtual account via online banking. So, Riba doesn't mix up with my money and I don't need to care about that Riba. But I am not sure about giving it to a charity.
Another way is, talking to the bank not to give you interest. Some banks accepts this, some will say they will transfer it to another account automatically each month. Some says 'No'!.
Please note this also: Banks usually charge an amount for each ATM withdrawals you do. Some people account that withdrawal fee with this Riba. It's is a service charge from the bank and you can't pay that service charge using Riba.
Simply, do not use Riba, its haram