minor fix to avoid copying an extra byte for a string parameter.