MT#9239 Allow '*' as first rewrite char.

(cherry picked from commit 86a2b4d9da5ddf01feae3eba649cf2b644e6945e)