Prevent crashing using '/' in scripts and allow 2byte and 1 bytes characters to co-exist