Don't search in binary files

Fixed #3027

- skip binary files (contains control characters)
- skip images

review: @devoncarew