Make string2uri conversion in K2Storage more testable.