Filter purchase ID and entrance code to prevent "contains illegal characters" errors.