execute site:stage as default on profile "all"
Rework encoding replacement to handle zero-length replace string.

Our logic only allowed single-char replacements through, since
that is what NIO supports, but zero-char replacement basically
maps to the IGNORE action in NIO. This patch makes that change.

Fixes #881.
Merge remote-tracking branch 'github/master'