Correcting URI to string