Update handling of html argument

Determine of the html argument is binary or text, reject all binary
files as an incorrect argument with 400