Moved scriptfunction EscapeApos to the appropriate namespace.