Use enctype only if it's defined