str: add str_to*_strict functions.