charmodel: urldecode_alloc needs to make room for trailing \0