Only invoke String.replace() once during decode. (fixes gh #8)