Fix bug "Object reference not set to an instance of an object" when running Get-Command

Encoding problem.