move magic command, add encoding utf8 when testing jython