ref and submodule utf8 support