Allow replacing http with https

Simple hack to allow replacing http with https in the resulting (short) url.

ToDo: 
1. Add the same (backwards) in expand function. 
2. If needed - do the same in extended return