The best method, I've heard (haven't actually tried it yet) is to mix a little isopropyl (rubbing) alcohol and table salt, put it in your pipe and shake it for a few minutes. Then dump it out and repeat if necessary. Wait for all the alcohol to evaporate before you use it again, because alcohol + flame = bad.