use memmove instead of strcpy, avoids undefined behavior

Fixes crash observed when serving any file on OS X 10.9.5.

A quick grep through the source shows there are many more such calls,
a full audit will be necesary, but at least it serves files now.