Failed to initialize ua parser (Error Inside "Bad" Topic)

Whenever Stream Enrich tries to enrich an event, it puts it into the “bad” topic and has the error:

Failed to initialize ua parser: [java.nio.charset.MalformedInputException: Input length = 2]

It seems to be coming from this file:

My config:

{
    "schema": "iglu:com.snowplowanalytics.snowplow/ua_parser_config/jsonschema/1-0-1",

    "data": {

        "vendor": "com.snowplowanalytics.snowplow",
        "name": "ua_parser_config",
        "enabled": true,
        "parameters": {
            "database": "regexes.yaml",
            "uri": "http://localhost:8301/"
        }
    }
}

The url does give back the regexes.yaml. (S3:// is not supported in the Kafka Stream Enricher)

I removed this enricher in favor of yauaa_enrichment_config which seems to be working fine.