client: Replace deprecated g_memmove

Replace a hand-rolled partial string duplication with g_strndup.

https://bugzilla.gnome.org/show_bug.cgi?id=739233