- function taken from posh-github, allow us to reliably select the appropriate encoding for writing to $PROFILE
- Includes new set of PowerShellHelpers to find standard module directory