add utf-8 characters to hello test program
move module compilation into a function

this is preparation for allowing loading/compiling dependencies of the
currently compiled module

also change input to be the module, not the source file
switch string resource length to be bytes

makes more sense since the length was wrong for utf8 strings anyway