[PECOFF] String pointed by StringRef is not always NUL-terminated.

In order not to overrun a StringRef and copy the trailing garbage, we need to
set the maximum length to be copied by strncpy.