Auto-detect character encoding using charlock_holmes
More flexible require paths; work when executable is called directly