fix redirects for percent-encoded destinations

apparently apache was urldecoding and reencoding and garbled on the
way and clients were sent to the wrong destination

first fixed generated conf for 2 entries and tested and they worked

then fixed the php and the new conf for those 2 entries was
identical to what was tested

Change-Id: Ibd3c0e506235487dfe9e7834ae05d4012b9c6c4c