Fix loading resource from path with a space in it