Use strings.Contains for checking content types

Fixes #1391