this ignores the fact that strings can contain a null character. for example, this is a valid Go program:
package main
import "fmt"
func main() {
fmt.Printf("%q\n", "hello \x00 world")
}