Remove slashes when generating token