Allow empty string as base64 or hex