set force encoding
modified the order of encoding filer
added validation query