I believe that the best way to fix this is add grep option with which the specified search string encoding. It also fix this: 
-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/1321#issuecomment-262880405
