remote: Introduce git_remote_is_valid_name()

Fix libgit2/libgit2sharp#318