I don't think this is the ideal approach since it will truncate passwords that contain `:`.