Replacing forbidden characters