Specify UTF-8 character encoding when getting length of query

More information here
http://www.alfredforum.com/topic/1788-prevent-flash-of-no-result