Brake lines need cleaned

The brake lines coming off the master cylinder have some rust and dirt and need cleaned up. I've tried a couple things, but nothing seems to really clean them up.

I really don't want to replace them. Any ideas.....what works?? Thanks in advance.

Z