small edit to prevent against failure for non-ascii characters