Consider extensions up to a space char

This enables ICEcoder to understand that image.jpg (2) is a jpeg and can
be opened as an image