use strlcpy/strlcat/snprintf everywhere and added StringCopy+StringJoin utility functions