Add test case for rewriting ugoira URLs.
Save normalized source with post instead of original source.

Fixes #2294.