Some fixes, .htaccess utils and a new utf8 test

Some fixes, .htaccess utils and a new utf8 test