A previous refactor made the parser more lenient and this takes it back to making sure only ascii digits are accepted. Added test 1684 to verify Follow-up to 304b5183fd Pointed out by Codex Security Closes #21041
304b5183fd