fix(engine): fix encoding of resource urls with whitespaces

rrrrrrrrrelated to #CAM-2107