Prevent other filters from modifying media tags

From #3600.

How it works:
In the prepare step, all media tags are converted to md5 hashes. 
In the process step, the md5 hashes are converted back to media tags, and then the text goes right into media_filter.