Fix/Add UTF-8 support in the console

Actually, you can't type "UTF-8" characters in the console, with this patch this does the same thing as here ( https://github.com/minetest/minetest/commit/b24b8de00b7ab5f81b0e0255509af3f10f6e2514#L16R276 ).