core: check that string is not NULL in function string_input_for_buffer
tests: add tests of function string_is_word_char
core: check that from/to arguments are not NULL in base16/64 functions