Looks like this should be 'clean_uri.to_s' so that this method always returns a string.