When you end a sentence with a quotation you put the punctuation within the quote.
British style, on the other hand, specifies that a period goes outside the quotations.
http://blog.apastyle.org/apastyle/2011/08/punctuating-around...
I happen to disagree with them, but they have been considered authorities on the proper way to write in the English language for many decades.