enforce const correctess, fix undefined behaviour with string literals