Fixed encoding in searches