Cover multy byte chars for root path.

 * Add some tests:
    - utf8_paths
    - bytecharindex
 * Make some public methods static.

 * Case insensitive file extension for template images. (Manually permute
   possibilities.)