Fixed/reverted broken pull request #631
fix #633: SimpleTemplate \% dropping leading space

Thanks @rpuntaie