[Reviewer: Andy] Escape all fields, and do it properly.

Andy,

Please can you review my fix to escape values when doing replacements in local_settings.py.  This fixes #80.

I've live-tested.

Thanks,

Matt