avstring: Mark some character handling functions av_const

Signed-off-by: Martin Storsjö <martin@martin.st>