SDL cannot open Android filename with a space

SDL_RWFromFile seems not to be able to open a file on Android if the filename contains a space character. I think Android requires the space to be escaped (using a backslash?) but for cross-platform compatibility reasons this should surely be done in SDL, not in the application?