parse magnet uri only if it's a string