Honestly this is such a stupid problem.

Actually, useragents in general are stupid, and have given us such wonderful things as companies cough Google cough intentionally breaking their website on competing browsers to make them seem inferior.