Hey,though it might be too late to answer this question,I think it still worth it.
I just came across this problem.
the solution is that you can paste the code I gave out here into the editor of your component
The underlying reason for this error is that you are using a non-ASCII character in the name of one of your energy model inputs (maybe a HBZone or a Construction?). So the easiest way to solve it is to just to make sure you use ASCII characters. The LBT plugin has much better checks for these characters than the Legacy plugin so you would easily be able to identify the failing object there.
Alternatively, if you want to use @MeowY 's workaround, I imagine that you just need to be paste that code in a GHPython component.