BUG Fix encoding of JS redirection script