Defending media freedom: using the law to protect journalists at risk