Replace http with https where possible