Backporting r18957 from trunk:
Fix two bugs:
* Wide Character warning in authority.generate_overlay_template due to the generated template not being UTF-8 encoded internally
* Correctly test the same space-normalization form of the pre- and post-strip records during the application of a replace rule in vandelay.replace_field
This addresses https://bugs.launchpad.net/evergreen/+bug/687996 for 2.0beta5
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18960
dcc99617-32d9-48b4-a31d-
7c20da2025e4