Based on the original tobie/ua-parser repository.