Fixed STR sequence termination condition

ascii code may only be checked for characters that have length equal to
1, not width equal to 1
This commit is contained in:
Internal Server Error - Gitea: Git with a cup of tea and freedom
500 Internal Server Error

Gitea Version: 1.28.0+dev-505-g31b4d79a84