Use hex escape to inject NUL character

NUL characters start escape sequence for byte with octal value.  This caused
problems when environment variables had digit values. For example, if
SSH_AGENT_PID=46, the command `printf "\046"` would result in the output `&`,
as 045 is the octal value for the ampersand character.