Added utf-8 check to masthead search