Null-terminate target filename