add ability to request optional parameters

Two fixes:

1. Add ability to request optional params (the ability was already there just not exposed)
2. Fix pickle.loads crashing on non ASCII chars